let productListStrAll = ''


function showProductList() {
    let productStr=localStorage.getItem('Product-9.9')
    let productList=JSON.parse(productStr)
    console.log(productList);
    let str = productList.map(item => {
        return `<div class="product-item" >
                    <img src="${item.picture}" alt="">
                    <p>${item.shop}</p>
                    <p><span>￥${item.price}</span> <span>${item.oldprice}人已买</span></p>
                </div>`
    }).join('')
    productListStrAll = productListStrAll + str
    $('.product-list1').html(productListStrAll)
}
showProductList() 

